package com.gxuwz.ssy.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import com.gxuwz.ssy.common.CustomTypeHandler;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 师善滢
 * @since 2022-04-06
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @TableField("account")
    private String account;

    //有了这个数据库BaseMapper插入的时候才能 自动加密
    @TableField(value = "pwd",typeHandler = CustomTypeHandler.class)
    private String pwd;



}
